//
//  UIImage+Extension.h
//  XTXOneToOne
//
//  Created by Canny on 2018/10/29.
//  Copyright © 2018年 WK. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIImage (Extension)

+ (UIImage *)originalImageFromImageNamed:(NSString *)imageName;

+ (UIImage*) createImageWithColor:(UIColor*) color;

- (UIImage *)drawRectWithRoundedCorner:(CGFloat)radius size:(CGSize)size;

+ (UIImage *)imageWithBorderW:(CGFloat)borderWH borderColor:(UIColor *)color image:(UIImage *)image;
+ (UIImage*)drawTextToImage:(NSString*)text addToView:(UIImage*)image;
/**
 *  根据CIImage生成指定大小的UIImage
 *
 *  @param image CIImage
 *  @param size  图片宽度
 *
 *  @return 生成的高清的UIImage
 */
+ (UIImage *)creatNonInterpolatedUIImageFormCIImage:(CIImage *)image withSize:(CGFloat)size;

+ (UIImage *)SDResizeWithImaName:(NSString *)iconName;
+ (UIImage *)SDResizeWithIma:(UIImage *)image;
+ (UIImage *)SDImageWithColor:(UIColor *)color;


@end

NS_ASSUME_NONNULL_END
